package cn.lastjune.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.lastjune.dao.SummaryIdDao;
import cn.lastjune.pojo.SummaryId;
import cn.lastjune.service.SummaryIdService;
import cn.lastjune.util.Page;

@Service
@Transactional
public class SummaryIdServiceImpl implements SummaryIdService
{
    @Autowired
    SummaryIdDao dao;

    @Override
    public Page<SummaryId> getAll(Page<SummaryId> page)
    {

        return dao.getPageAll(page);
    }

    @Override
    public SummaryId getSummaryIdById(BigDecimal id)
    {

        return dao.get(id);
    }

    @Override
    public void insertSummaryId(SummaryId entity)
    {
        dao.add(entity);
    }

    @Override
    public void deleteSummaryId(BigDecimal id)
    {
        dao.delete(id);
    }

    @Override
    public void updateSummaryId(SummaryId entity)
    {
        dao.update(entity);
    }

}
